package com.gcpproxy.model;

import lombok.Data;

@Data
public class ErrorResponse {
    private Error error;
    
    @Data
    public static class Error {
        private String message;
        private String type;
        private String code;
    }
    
    public static ErrorResponse create(String message, String type, String code) {
        ErrorResponse response = new ErrorResponse();
        Error error = new Error();
        error.setMessage(message);
        error.setType(type);
        error.setCode(code);
        response.setError(error);
        return response;
    }
}

